<template>
  <div class="Info">
    <el-form label-width="120px">
      <el-form-item label="企业名称">
        <el-input :placeholder="infos.name" disabled />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input :placeholder="infos.companyAddress" disabled />
      </el-form-item>
      <el-form-item label="公司电话">
        <el-input :placeholder="infos.companyPhone" disabled />
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input :placeholder="infos.mailbox" disabled />
      </el-form-item>
      <el-form-item label="备注">
        <el-input :placeholder="infos.remarks" disabled />
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import { companyGet } from '@/api/setting'
export default {
  name: 'Info',
  data() {
    return {
      infos: {}
    }
  },
  created() {
    this.getData()
  },
  methods: {
    async getData() {
      const res = await companyGet()
      console.log('res', res)
      this.infos = res.data
    }
  }
}
</script>
<style lang="scss" scoped>
.Info {
  margin: 0 auto;
  width: 800px;
}
</style>
